<template>
  <div>
    <b-button @click="clickMe">发送</b-button>
  </div>
</template>

<script>
  export default {
    data() {
      return {
        user: {}
      }
    },
    methods: {
      clickMe() {
//        console.log(this.user)
//        resolve({template: '<div><input></div>'});
        var params = new URLSearchParams();
        params.append("userId", "user1")
        // params.append("favors",JSON.stringify(["睡觉", "看电视"]))
        // params.append("orders",JSON.stringify([{time: 1},{id: 0}]));
        params.append("orders[0][time]",1)
        params.append("orders[1][id]",0)
        params.append("tests[0]","看电视");
        params.append("tests[1]","睡觉");
        params.append("tests[2]","看电视");
        params.append("obj[id]",1)
        params.append("obj[name]",1)
        // params.append("fromDate","2018-05-01 12:00:00")
        params.append("fromDate",new Date().getTime())
        this.$http.post('/api/cust/customer/html',params).then(res=> {
          console.log(res.data);
        }).catch(e=>{
          console.error(e);
        });

      }
    },
    components: {

    }
  }
</script>

<style type="text/css" rel="stylesheet" scoped>
  .row {
    margin-left: 0px !important;
  }
</style>
